package com.silverbox.sweeporder.common;

/**
 * 普通常量类
 * 
 * @author yxy
 * @version 2019年3月19日 
 */
public class CommonConstants {

	public static enum Dict {
		WAIMAI_OPERATE_TIME_TYPE("WaimaiOperateTimeType", "订单操作类型"),WAIMAI_OPERATOR_TYPE("WaimaiOperatorType", "订单操作人员类型");

		private Dict(String value, String name) {
			this.value = value;
			this.name = name;
		}

		private final String value;
		private final String name;

		public String getValue() {
			return value;
		}

		public String getName() {
			return name;
		}
	}
	
	public static enum WaimaiOperateTimeType{
		START_ORDER("START_ORDER","开始点餐"),ORDER("ORDER","下单"),ADD_ORDER("ADD_ORDER","加菜"),ORDER_PAY("ORDER_PAY","订单支付"),
		SETTLE_ACCOUNTS("SETTLE_ACCOUNTS","结账"),TAKE_MEAL("TAKE_MEAL","取餐");
		
		private WaimaiOperateTimeType(String value,String name){
            this.value = value;
            this.name = name;
        }
		
        private final String value;
        private final String name;
        
        public String getValue() {
            return value;
        }

        public String getName() {
            return name;
        }
	}
	
	public static enum WaimaiOperatorType{
		CUSTOMER("CUSTOMER","顾客"),WAITER("WAITER","服务员"),CASHIER("CASHIER","收银员"),STORE("STORE","门店");
		
		private WaimaiOperatorType(String value,String name){
            this.value = value;
            this.name = name;
        }
		
        private final String value;
        private final String name;
        
        public String getValue() {
            return value;
        }

        public String getName() {
            return name;
        }
	}
	/**
	 * 员工授权途径
	 * 
	 * @author ywc
	 *
	 * 2019年8月14日
	 */
	public static enum EmployeeAuthSource{
		WEIXIN("weixin", "微信"), ALIPAY("alipay", "支付宝"), WEIBO("weibo", "微博");
		
		private EmployeeAuthSource(String value, String name) {
			this.value = value;
            this.name = name;
		}
		
		private final String value;
        private final String name;
        
        public String getValue() {
            return value;
        }

        public String getName() {
            return name;
        }
	}

	public enum WaimaiType{

        DISTRIBUTE("外卖","0"),
        PICK("自提","1");

	    private String name;
	    private String code;

        WaimaiType(String name, String code) {
            this.name = name;
            this.code = code;
        }

        public String getName() {
            return name;
        }

        public WaimaiType setName(String name) {
            this.name = name;
            return this;
        }

        public String getCode() {
            return code;
        }

        public WaimaiType setCode(String code) {
            this.code = code;
            return this;
        }
    }
	
}
